package br.com.iswe.gwt.crud.client;

import br.com.iswe.core.entidades.gwt.RemoteEntityObject;
import br.com.iswe.gwt.ui.client.Listener;

public interface DetailPanelContract<E extends RemoteEntityObject>  {

	void prepareInsert();

	void addAfterDetailListener(Listener<DetailPanelContract<E>> listener);
	
	void addCancelListener(Listener<DetailPanelContract<E>> listener);
	
	void addAfterSaveListener(Listener<DetailPanelContract<E>> listener);
	
	void addAfterDeleteListener(Listener<DetailPanelContract<E>> listener);

	E getEntity();
}
